import QtQuick
import QtQuick.Controls

Item {
    width: 400
    height: 400

    Image {
        id: image
        source: "qrc:/images/deepseek-logo.png"
        width: 200
        height: 200
        anchors.centerIn: parent

        // 缩放控制
        property real imageScale: 1.0
        scale: imageScale

        // 缩放动画
        Behavior on imageScale {
            NumberAnimation { duration: 200 }
        }
    }

    // 添加缩放控制滑块
    Slider {
        anchors.bottom: parent.bottom
        width: parent.width
        from: 0.1
        to: 3.0
        value: 1.0
        onValueChanged: image.imageScale = value
    }
}
